package com.ssii.www.myproject.service.impl;

import com.ssii.www.myproject.domain.Menu;
import com.ssii.www.myproject.domain.MenuDto;
import com.ssii.www.myproject.repository.MenuRepository;
import com.ssii.www.myproject.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MenuServiceImpl extends BaseServiceImpl<Menu,Long> implements MenuService {
  @Autowired
  private MenuRepository menuRepository;
  @Override
  public List<Menu> loadTreeByUserId(Long id) {
    return menuRepository.loadTreeByUserId(id);
  }
}
